package domain;

import util.DateComparator;
import util.SortedList;

import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * User: Алексей
 * Date: 13.11.12
 * Time: 0:16
 */
@XmlRootElement(name = "tasks")
public class Root {

    private List<Task> tasks = new SortedList<Task>(new DateComparator());

    @XmlElement(name = "task")
    public List<Task> getTasks() {
        return tasks;
    }

    public void setTasks(List<Task> tasks) {
        this.tasks = tasks;
    }

}
